
#import "HomeLayout.h"
#define kScreenWidth [UIScreen mainScreen].bounds.size.width
#define kScreenHeight [UIScreen mainScreen].bounds.size.height
#define kItemHeight 150

@implementation HomeLayout


#pragma mark 配置layout基本属性
-(void)prepareLayout
{
    self.scrollDirection = UICollectionViewScrollDirectionVertical;
    
    self.itemSize = CGSizeMake(kScreenWidth, kItemHeight);
    
}

#pragma mark 是否时刻改变布局
-(BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds
{
    return YES;
}





@end
